Telegram Group & Telegram Channel
#جلسه_سوم
#میکرو_پایتون

راه اندازی ADC در میکرو پایتون!

جهت راه اندازی ADC (مبدل انالوگ به دیجیتال )

ابتدا کتابخانه Machine را فراخواتی میکنیم .

import machine

سپس پین adc مربوط به برد میکروپایتون خود را شناسایی کرده و آنرا در دستور زیر قرار دهید

adc=machine.ADC(machine.Pin(Pin number))

به جای عبارت Pin number شماره پین Adc برد خودرا وارد نمایید

و حال تابع adc.read را به نمایش بگذارید

Print(adc.read())

در نتیجه نسبت به ولتاژ وارده به پین که بین ۰ تا ۳.۳ باید باشد و اگر ولتاژ بالاتری از این حد دارید با تقسیم مقاومتی باید این ولتاژ را به ۳.۳ رسانده و به پین اعمال کنید . مقدار دیجیتال شده ولتاژ انالوگ‌ وارده را مشاهده میکنید .


اسکریپت کامل 👇👇👇

#Micro Python ADC
#----------------------------------------
#Dev By Eng Meysam Mz
#----------------------------------------
#----------------
import machine
Import time

adc=machine.ADC(machine.Pin(36))

While 1:
print(adc.read())
time.sleep(1)

#-----------------

@Raspberryproject
@Raspberry_Python
@micropython_iot



tg-me.com/micropython_iot/44
Create:
Last Update:

#جلسه_سوم
#میکرو_پایتون

راه اندازی ADC در میکرو پایتون!

جهت راه اندازی ADC (مبدل انالوگ به دیجیتال )

ابتدا کتابخانه Machine را فراخواتی میکنیم .

import machine

سپس پین adc مربوط به برد میکروپایتون خود را شناسایی کرده و آنرا در دستور زیر قرار دهید

adc=machine.ADC(machine.Pin(Pin number))

به جای عبارت Pin number شماره پین Adc برد خودرا وارد نمایید

و حال تابع adc.read را به نمایش بگذارید

Print(adc.read())

در نتیجه نسبت به ولتاژ وارده به پین که بین ۰ تا ۳.۳ باید باشد و اگر ولتاژ بالاتری از این حد دارید با تقسیم مقاومتی باید این ولتاژ را به ۳.۳ رسانده و به پین اعمال کنید . مقدار دیجیتال شده ولتاژ انالوگ‌ وارده را مشاهده میکنید .


اسکریپت کامل 👇👇👇

#Micro Python ADC
#----------------------------------------
#Dev By Eng Meysam Mz
#----------------------------------------
#----------------
import machine
Import time

adc=machine.ADC(machine.Pin(36))

While 1:
print(adc.read())
time.sleep(1)

#-----------------

@Raspberryproject
@Raspberry_Python
@micropython_iot

BY Micropython & IOT


Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283

Share with your friend now:
tg-me.com/micropython_iot/44

View MORE
Open in Telegram


Micropython & IOT Telegram | DID YOU KNOW?

Date: |

A Telegram spokesman declined to comment on the bond issue or the amount of the debt the company has due. The spokesman said Telegram’s equipment and bandwidth costs are growing because it has consistently posted more than 40% year-to-year growth in users.

Telegram Be The Next Best SPAC

I have no inside knowledge of a potential stock listing of the popular anti-Whatsapp messaging app, Telegram. But I know this much, judging by most people I talk to, especially crypto investors, if Telegram ever went public, people would gobble it up. I know I would. I’m waiting for it. So is Sergei Sergienko, who claims he owns $800,000 of Telegram’s pre-initial coin offering (ICO) tokens. “If Telegram does a SPAC IPO, there would be demand for this issue. It would probably outstrip the interest we saw during the ICO. Why? Because as of right now Telegram looks like a liberal application that can accept anyone - right after WhatsApp and others have turn on the censorship,” he says.

Micropython & IOT from ye


Telegram Micropython & IOT
FROM USA